<include file="Public/sui_header" />
<a href="{$model['h5_link']}"><img src="__PUBLIC__/file/{$model['img']}" class="detail-img" /></a>
<style type="text/css">
	.top-line {
		text-align: center;
		margin-bottom: 0.5rem;
	}
	.top-num {
		color: orange;
		font-size: 1.2rem;
	}
</style>
<div class="row top-line">
  	<div class="col-33">
  		<span class="top-num">{$model['funding_price']}</span><br/>
  		<span>众筹价格</span>
  	</div>
    <div class="col-33">
    	<span class="top-num">{$model['already_num']}</span><br/>
  		<span>已筹人数</span>
    </div>
    <div class="col-33">
    	<span class="top-num">{$model['total_num']}</span><br/>
  		<span>众筹总人数</span>
    </div>
</div>
<div style="font-size:1.2em">
    <span class="color-block">&nbsp;</span>&nbsp;筹单简介
</div>
<div class="card">
    <div class="card-content">
        <div class="card-content-inner">
            <div class="list-block">
                <ul>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
<!--                                 <div class="item-title label"></div>
 -->                                <div class="item-input">
                                    {$model['detail_wap']|html_entity_decode}
                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<div style="font-size:1.2em">
    <span class="color-block">&nbsp;</span>&nbsp;基本信息
</div>
<div class="card">
    <div class="card-content">
        <div class="card-content-inner">
            <div class="list-block">
                <ul>
                	<if condition="$model['transaction_type'] eq 定制">
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">定制名称</div>
                                <div class="item-input">
                                    {$model['name']}
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">价格</div>
                                <div class="item-input">
                                    {$model['funding_price']}
                                </div>
                            </div>
                        </div>
                    </li>
                    <else/>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">筹单名称</div>
                                <div class="item-input">
                                    {$model['name']}
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">众筹价</div>
                                <div class="item-input">
                                    {$model['funding_price']}
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">人数</div>
                                <div class="item-input">
                                    {$model['already_num']}/{$model['total_num']}人
                                </div>
                            </div>
                        </div>
                    </li>
                    </if>
                    
                    <if condition="$fundingType['en'] eq 'eat'">
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">餐饮类型</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['eat_type']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">用餐时间</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['eat_time']|date="Y-m-d H", ###}时
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">用餐地点</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['eat_location']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
                        <elseif condition="$fundingType['en'] eq 'hotel'" />
						<li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">酒店类型</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['hotel_type']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">入住时间</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['start_time']|date="Y-m-d", ###}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">离店时间</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['end_time']|date="Y-m-d", ###}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">酒店地点</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['hotel_location']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
                        <elseif condition="$fundingType['en'] eq 'traffic'" /> 
						<li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">交通方式</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['traffic_type']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">出发地</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['departure']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">目的地</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['destination']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">出发时间</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['start_time']|date="Y-m-d H:i:s", ###}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">出发站点</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['start_station']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">到达站点</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['end_station']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
                        <elseif condition="$fundingType['en'] eq 'travel'" /> 
						<li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">旅游类型</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['travel_type']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">出发地</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['departure']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">目的地</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['destination']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
                        <elseif condition="$fundingType['en'] eq 'specialty'" /> 
                        <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">特产类型</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['specialty_type']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">源产地</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['origin']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">发货时间</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['delivery_time']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
                        <elseif condition="$fundingType['en'] eq 'play'" /> 

                        <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">娱乐类型</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['play_type']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">地点</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['play_location']}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
	                    <li>
	                        <div class="item-content">
	                            <div class="item-inner">
	                                <div class="item-title label">时间</div>
	                                <div class="item-input">
	                                    {$fundingSpecify['play_time']|date="Y-m-d H:i:s", ###}
	                                </div>
	                            </div>
	                        </div>
	                    </li>
                    </if>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">H5详情</div>
                                <div class="item-input">
                                    <a href="{$model['h5_link']}" style="border-color:#EE782E;color:#EE782E;" class="button button-success">点击查看</a>
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">评价</div>
                                <div class="item-input">
                                    <a href="{:U('Funding/CommentList', ['id'=>$model['user_id']])}" style="border-color:#EE782E;color:#EE782E;" class="button button-success">点击查看</a>
                                </div>
                            </div>
                        </div>
                    </li>
<!--                     <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label">详情</div>
                                <div class="item-input">
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title label"></div>
                                <div class="item-input">
                                    {$model['detail_wap']|html_entity_decode}
                                </div>
                            </div>
                        </div>
                    </li> -->
                </ul>
            </div>
        </div>
    </div>
</div>
<if condition="$model['transaction_type'] eq 定制">
<div class="row detail-submit">
    <php> $tel = D('user')->find($model['user_id']);</php>
    <div class="col-50"><a href="tel:{$tel[username]}" class="button button-big button-fill button-info close-panel"><span class="fa fa-phone"></span> 联系TA</a></div>
    <div class="col-50"><a href="#" class="button button-big button-fill button-success return"><span class="fa fa-arrow-left"></span> 返回</a></div>
</div>
<else/>
<php>
	$fundingOrder = D('FundingOrder')->where(['funding_id'=>$model['id'], 'state'=>['neq', '待支付']])->select();
</php>
<if condition="count($fundingOrder) neq 0">
<!-- 众筹动态 -->
<div style="font-size:1.2em">
    <span class="color-block">&nbsp;</span>&nbsp;众筹动态
</div>
</if>
<style type="text/css">
	.orange {
		color: orange;
	}
</style>
<div class="card">
    <div class="card-content">
        <div class="card-content-inner">
            <div class="list-block media-list">
                <ul>
                <volist name="fundingOrder" id="vo">
                <php>
                    $user = D('User')->find($vo['user_id']);
                    if ($vo['state'] != '已退款') {
                </php>
                  <li>
                    <div class="item-content">
                      <div class="item-media"><img src="__PUBLIC__/file/{$user['photo']}" style='width: 2.0rem;height: 2rem;'></div>
                      <div class="item-inner">
                        <div class="item-title-row">
                          <div class="item-title">{$vo['name']}</div>
                        </div>
                        <div class="item-subtitle">{$vo['create_time']|date="Y-m-d",###}参与了众筹</div>
                      </div>
                    </div>
                  </li>
                <php>
                    }
                </php>
                  </volist>
                </ul>
            </div>
        </div>
    </div>
</div>
<div class="row detail-submit">
    <php> $tel = D('user')->find($model['user_id']);</php>
    <div class="col-50"><a href="tel:{$tel[username]}" class="button button-big button-fill button-info close-panel"><span class="fa fa-phone"></span> 联系TA</a></div>
    <div class="col-50"><a href="__CONTROLLER__/buy/id/{$model['id']}/consignment_id/{$_GET['consignment_id']}" class="button button-big button-fill button-success"><span class="fa fa-check"></span> 参与众筹</a></div>
</div>
</if>
<include file="Public/sui_footer" />
